[0073] 将 format 模块从 s7.c 拆分为独立编译单元#848
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
将 s7.c 中的 format 相关函数拆分到独立的编译单元
s7_scheme_format.c中,并在(liii base)中导出format函数。改动内容
src/s7_scheme_format.c和src/s7_scheme_format.h,包含 format 模块的实现和声明src/s7.c,添加大量桥接函数(bridge functions)以支持外部编译单元访问内部宏和字段src/s7_internal_helpers.h,添加 format 相关桥接函数声明xmake.lua,将s7_scheme_format.c作为独立 C11 编译单元goldfish/liii/base.scm中导出formattests/liii/base/format-test.scm,包含 11 个 format 单元测试测试计划
xmake b goldfish编译通过bin/gf test全部 1457 个测试通过bin/gf doc --build-json索引更新成功bin/gf doc format可正常查看文档和测试🤖 Generated with Claude Code